import { Gateway, getGateway } from "@/droplet-bus/core.define";

import { app_gateway } from "./core.local";
import { Email } from "./schema.email";

export const EmailTouchGateway: Gateway = getGateway(app_gateway, "droplet_touch_email");
export type postEmailTouchRpcDto = { email: Email };
export type postEmailTouchRpcRes = null;

export interface EmailRpcInterface<T> {
  postEmail(dto: T & postEmailTouchRpcDto): Promise<null>;
}
